package lab02.Test11;


public class Rectangle implements Printx {

    double width,height;
    public double getArea(){
        double area = width*height;
        return area;
    }
    public double getAroundLong(){
        double aroundLong = (width*height)*2.0;
        return  aroundLong;
    }


    @Override


    public void printMyWay() {
            System.out.println( "面积是："+getArea()+"周长是"+getAroundLong());
    }
}
